package com.ebb.develop;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.ebb.R;
import com.ebb.classes.EBBActivity;

public class EBBDevelopLH extends EBBActivity implements OnClickListener {
	private Button btnMyProfile;
	private Button btnUserProfile;
	private Button btnMyFriends;
	private Button btnPushTest;
	private static final String TAG = EBBDevelopLH.class.getCanonicalName();

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.developlh);

		this.btnMyProfile = (Button) findViewById(R.id.myprofile_button);
		this.btnUserProfile = (Button) findViewById(R.id.userprofile_button);
		this.btnMyFriends = (Button) findViewById(R.id.myfriends_button);
		this.btnPushTest = (Button) findViewById(R.id.pushtest_button);
		this.btnMyProfile.setId(0x0021);
		this.btnUserProfile.setId(0x0022);
		this.btnMyFriends.setId(0x0023);
		this.btnPushTest.setId(0x0024);
		this.btnMyProfile.setOnClickListener(this);
		this.btnUserProfile.setOnClickListener(this);
		this.btnMyFriends.setOnClickListener(this);
		this.btnPushTest.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case 0x0021:
			Log.i(TAG, "--> Go to My Profile");
			finish();
			setIntent("com.ebb.EBBMyProfile");
			break;
		case 0x0022:
			Log.i(TAG, "--> Go to User Profile");
			finish();
			Intent intent = new Intent("com.ebb.EBBUserProfile");
			intent.putExtra("targetObject", "RGAj6BUG6v");
			startActivity(intent);
			break;
		case 0x0023:
			Log.i(TAG, "--> Go to My Friends");
			finish();
			setIntent("com.ebb.EBBMyFriends");
			break;
		case 0x0024:
			Log.i(TAG, "--> Go to Push Test");
			finish();
			setIntent("com.ebb.EBBPushTest");
			break;
		}
	}
}